package com.idanchuang.component.base.config;

/**
 * @author yjy
 * @date 2020/9/1 10:54
 **/
public class BaseConfigBean {

    /** 各个环境标识 */
    public final static String[] ENVS = {"dev", "test", "pre", "pro"};

    /** 当前环境 */
    private String env;
    private String quickServer = "http://dc-open-tool-test.idanchuang.vpc";

    public String getQuickServer() {
        return quickServer;
    }

    public void setQuickServer(String quickServer) {
        this.quickServer = quickServer;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public boolean isDevEnv() {
        return ENVS[0].equalsIgnoreCase(this.env);
    }

    public boolean isTestEnv() {
        return ENVS[1].equalsIgnoreCase(this.env);
    }

    public boolean isPreEnv() {
        return ENVS[2].equalsIgnoreCase(this.env);
    }

    public boolean isProEnv() {
        return ENVS[3].equalsIgnoreCase(this.env);
    }

}
